﻿<%@ Page Language="C#" AutoEventWireup="true" ValidateRequest="false" CodeBehind="CommonUpdate.aspx.cs" Inherits="SZHL.UI.View.CommonUpdate" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">

    <title></title>
    <link href="/CSS/bootstrap3.3.5/css/bootstrap.css" rel="stylesheet" type="text/css" />
    <script src="/Scripts/jquery-1.11.2.min.js" type="text/javascript"></script>
    <!--[if IE]>
        <script src="../../Scripts/HTML5.js"></script>
    <![endif]-->
    <style type="text/css">
        .szhl_Upload {
            display: none;
        }
    </style>
</head>
<body>
    <form id="UpdateForm" runat="server">

        <div class="container-fluid maindiv" style="margin: 20px 20px 50px 20px">
            <div class="row">
                <div class="col-xs-12">
                    <div class="tabbable">
                        <ul class="nav nav-tabs" role="tablist">
                            <li class="active"><a href="#tabForm" data-toggle="tab" style="font-size: 16px;">
                                <asp:Label runat="server" ID="lblTitle" Font-Bold="True" /></a></li>
                            <li class="pull-right"></li>
                        </ul>
                        <div class="tab-content" id="condv" style="overflow: hidden">
                            <div class="tab-pane fade in active" id="tabForm" style="padding-top: 10px; margin-bottom: 10px">

                                <asp:PlaceHolder runat="server" ID="UserControl" />

                            </div>
                        </div>
                    </div>

                </div>

            </div>
            <table class="table navbar-fixed-bottom" style="background-color: whitesmoke;">
                <tbody>
                    <tr>
                        <td class="text-center">

                            <asp:Button Text="更新数据" ID="btUpdateForm" runat="server" CssClass="btn btn-success btn-large" OnClientClick=" if(!CheckData()){return false;}" OnClick="btUpdateForm_Click" Width="180px" />
                            <asp:Button Text="删除数据" ID="btCancelForm" runat="server" CssClass="btn btn-danger btn-large" Width="180px" OnClick="btCancelForm_Click" Visible="false" Style="font-size: 16px; margin-left: 20px" />


                        </td>
                    </tr>
                </tbody>
            </table>
        </div>
        <script src="/CSS/bootstrap3.3.5/js/bootstrap.js" type="text/javascript"></script>
        <script type="text/javascript" src="/JqueryPlug/layer/layer/layer.js"></script>
        <script src="/Scripts/SZHLCommon.js" type="text/javascript"></script>
        <script>
            $(document).ready(function () {
                ComFunJS.initForm();
            });
            function CheckData() {
                if (typeof (getdata) === "function") {
                    getdata();
                }
                if (checkform()) {
                    return false;
                } else if (confirm('你确定要保存吗？')) {
                    return true;
                }
                else {
                    return false;
                }
            }
            function checkform() {
                $(".szhl_require").trigger('blur');
                var numError = $('.errmsg').length;
                if (numError) {
                    return true;
                } else {
                    return false
                }
            }
        </script>



        <input type="hidden" id="hidFileIDS" runat="server" value="" />
        <input type="hidden" id="hidFormCode" runat="server" value="" />

        <input type="hidden" id="hidFormID" runat="server" value="" />
    </form>
</body>
</html>
